/**
 * 公共组件数据
 */
import {
	defineStore
} from "pinia";
import {
	ref,
	reactive,
} from 'vue';
const useTabBarStore = defineStore(
	// 唯一ID
	"tabbar",
	() => {
		const tabbar = ref(1)
		const list = reactive([{
				text: "首页",
				iconPath: "http://51-jzt-dev.oss-cn-hangzhou.aliyuncs.com/miniapp/tab-home.png",
				selectedIconPath: "http://51-jzt-dev.oss-cn-hangzhou.aliyuncs.com/miniapp/tab-home_active.png",
				pagePath: "/pages/index/index"
			},
			{
				text: "个人中心",
				iconPath: "http://51-jzt-dev.oss-cn-hangzhou.aliyuncs.com/miniapp/tab-user.png",
				selectedIconPath: "http://51-jzt-dev.oss-cn-hangzhou.aliyuncs.com/miniapp/tab-user_active.png",
				pagePath: "/pages/user/user"
			}
		]);

		return {
			tabbar,
			list,

		};
	}
);

export default useTabBarStore;